<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<sec:authentication property="principal" var="currentPrincipal" scope="page"/>

<div class="block-heading">
  <h5>付款信息</h5>
  
  <c:if test="${not principal.supplier}">
    <a href="${ctx.host}/suppliers/${supplier.id}/edit-payment-info" data-target="#payment-info-edit" data-toggle="modal" title="Edit"
       class="pull-right" style="font-size: 12px; padding-top: 20px;">编辑
    </a>
  </c:if>
  
  <c:if test="${supplierMenuType eq 'sub'}">
    <a href="javascript:void(0);" class="print pull-right" style="font-size: 12px; padding-top: 20px; margin-right: 15px;">打印</a>
  </c:if> 
</div>

<div class="row">
  <div class="col-xs-12">
  
    <div class="form-horizontal ms-form form-personal-info">

      <div class="form-group ms-form-group">
        <label class="control-label col-xs-3">供应商全称：</label>
        <div class="col-xs-3 pull-left">
          <p class="form-control-static">${supplier.name}</p>
        </div>
        <label class="control-label col-xs-3">供应商类型：</label>
        <div class="col-xs-3 pull-left">
          <p class="form-control-static">${supplierInfo.supplierType}</p>
        </div>
      </div>

      <div class="form-group ms-form-group">
        <label class="control-label col-xs-3">纳税人识别号：</label>
        <div class="col-xs-3 pull-left">
          <p class="form-control-static">${supplierInfo.uniformSocialCreditCode}</p>
        </div>
        <label class="control-label col-xs-3">地点简称（省市）<span class="color-red">（范例：湖南省）</span>：</label>
        <div class="col-xs-3 pull-left">
          <p class="form-control-static">${supplierInfo.shortLocationName}</p>
        </div>
      </div>


      <div class="form-group ms-form-group">
        <label class="control-label col-xs-3">详细地址：</label>
        <div class="col-xs-3 pull-left">
          <p class="form-control-static">${supplierInfo.contactAddress}</p>
        </div>
        <label class="control-label col-xs-3">开户行全称：</label>
        <div class="col-xs-3 pull-left">
          <p class="form-control-static">${supplierInfo.bankName}</p>
        </div>
      </div>


      <div class="form-group ms-form-group">
        <label class="control-label col-xs-3">开户行城市：</label>
        <div class="col-xs-3 pull-left">
          <p class="form-control-static">${supplierInfo.bankCity}</p>
        </div>
        <label class="control-label col-xs-3">银行账户：</label>
        <div class="col-xs-3 pull-left">
          <p class="form-control-static">${supplierInfo.bankAccount}</p>
        </div>
      </div>

    </div>
  </div>
</div>